<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 外边距遵循左上原则 */
        div{
            width: 200px;
            height: 200px;
            background-color: aquamarine;
            box-sizing: border-box;
            display: inline-block;
        }
        .one{
            margin-right: 50px;
        }

    </style>
</head>
<body>
    <div class="one"></div><div class="two"></div>
</body>
</html>